package com.wlps.vo.warehousecenter.warehousing;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/2
 */
@Data
@ApiModel(value = "购货入库单Vo")
public class PurchaseReceiptVo {
    @ApiModelProperty(value = "购货入库单号")
    private Long id;
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "任务状态,未入库为0，已入库为1")
    private Integer taskStatus;

    @ApiModelProperty(value = "计量单位")
    private String unitofmeasurement;

    @ApiModelProperty(value = "型号")
    private String model;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "入库日期")
    private Date date;

    @ApiModelProperty(value = "商品应入库数量")
    private Long purchaseVolume;

    @ApiModelProperty(value = "实际入库数量")
    private Long actualVolume;
    @ApiModelProperty(value = "备注")
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
